package thread;

public class Demo4 {
    public static void main(String[] args) throws InterruptedException {
        while (true){
            long beg = System.currentTimeMillis();
            Thread.sleep(1000);
            long end = System.currentTimeMillis();
            System.out.println("时间：" + ((end - beg)) + "ms");
        }
    }
}
